package cn.yiyuan.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @user m
 * @project system_boog
 * @date 2023-10-16
 * @package cn.yiyuan.base.query
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BaseQuery {
    //   关键字
    private String keyword;
    //    当前页
    private Integer currentpage;
    //    总页数
    private  Integer pageSize;

    //    获取Starter
    public int getStart(){
        return (currentpage-1)*pageSize;
    }


}
